<%@ page import="cn.com.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: DELL
  Date: 2020/10/25
  Time: 21:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>right</title>
    <style type="text/css" >
        html,body{
            width: 250px;
        }
        .content{
            width: 200px;
            margin: 0 auto;
            border: 5px solid #0192e8;
            background: white;
            margin-top: 40px;
            padding: 10px;
            box-sizing: border-box;
            font: 20px "华文行楷";
            line-height: 50px;
            text-align: center;
            font-weight: 700;
        }
        .lianjie{
            width: 200px;
            margin: 0 auto;
            margin-top: 20px;
        }
        .lianjie a{
            margin-bottom: 10px;
            display: block;
            text-decoration: none;
            color: white;
        }
        .lianjie a:hover div{
            border: 2px solid red;
            color: red;
        }
        .lianjie a div{
            width: 200px;
            height: 50px;
            margin: 0 auto;
            border: 2px solid white;
            font: 20px "华文行楷";
            line-height: 50px;
            text-align: center;
            letter-spacing: 2px;
        }
    </style>
    <script src="/WebContent/JQuery/jquery-3.4.1.js" type="text/javascript"></script>
</head>
<%
     User user = (User) session.getAttribute("user");
%>
<body>
     <div class="content">
         欢迎您，<%=user.getUsername()%>
     </div>
     <div class="lianjie">
         <a href="javascript:alert('校长信箱：president@nmu.edu.cn')">
             <div class="list">
                校长信箱
             </div>
         </a>
         <a href="javascript:alert('客服QQ:1174586985')">
             <div class="list">
                 联系客服
             </div>
         </a>
         <a class="tui">
             <div class="list">
                  我要登录
             </div>
         </a>
     </div>
     <script>
         $(document).ready(function () {
                 $(".tui").click(function () {
                     if(confirm("确定返回登陆吗？")){
                         $.ajax({
                             url:"/tuichu",
                             type:"get",
                             dataType:"text",
                             success:function (e) {
                                 if(e == "1"){
                                     parent.location.href="../HTML/UserLogin.jsp";
                                 }
                             },
                             error:function (error) {
                                 alert("操作异常！")
                             }
                         })
                     }else{
                         return false;
                     }
                 });





         })
     </script>
</body>
</html>